function loginin() {
    if (event.keyCode == 13) {
        $("#login").click();
    }
}

function login() {
    let data1 = {
        personnelNumber: $("#personnelNumber").val()
    };
    let data = myAjax("/login", data1, "post");
    console.log(data);
    if (data.result == 0) {
        alert("登录0");
    } else if (data.result == 2) {
        alert("登录2");
    } else if (data.result == 1) {
        window.location.href = 'main.html';
        // alert("登录成功");
    }
};

//刷新 验证码~~~~=======================================================